/*
 * @Autor: dingxiaolin
 * @Date: 2021-07-28 10:29:33
 * @LastEditors: dingxiaolin
 * @LastEditTime: 2021-07-28 14:12:04
 */
import { formatDate } from '@/utils/common'
import { useFormModal } from '@/hooks/useFormModal'
import { ellipsis } from '@/components'
import { getFormSchema } from './form-schema'
import { sysDictTypeDelete, sysDictTypeEdit } from '@/api/system/dict'

export const columns: TableColumn[] = [
    // 字典表格
    {
        title: '菜单名称',
        dataIndex: 'name',
        width: 220,
        ellipsis: true,
        // slots: {
        //   customRender: 'nameSlot'
        // }
    },
    {
        title: '菜单类型',
        dataIndex: 'type',
        width: 120,
        slots: {
            customRender: 'type'
        }
    },
    {
        title: '图标',
        dataIndex: 'icon',
        width: 70,
        slots: {
            customRender: 'menuIcon'
        }
    },
    {
        title: '组件',
        dataIndex: 'component',
        ellipsis: true,
        width: 120,
        // slots: {
        //   customRender: 'componentSlot'
        // }
    },
    {
        title: '路由地址',
        dataIndex: 'router',
        ellipsis: true,
        width: 160,
        // slots: {
        //   customRender: 'routerSlot'
        // }
    },
    {
        title: '排序',
        dataIndex: 'sort',
        width: 60
    },
    {
        title: '操作',
        dataIndex: 'action',
        width: 150,
        slots: {
            customRender: 'action'
        }

    }
]
